using System;
using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore;

namespace CRM.Models;

[Index(nameof(UserId))]
public class UserLoginLog : BaseModel
{
    public int Id { get; set; }
    
    [MaxLength(255)]
    public string Ip { get; set; }
    
    public string UserAgent { get; set; }
    public string LoginStamp { get; set; }
    
    public int UserId { get; set; }
}